<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>${groupInstance.section.name} - ${groupInstance.title}</title>
</head>
<body>
<g:form action="show" method="get">
  <table class="nav">
    <tbody><tr>
      <td valign="middle" align="left">
        <g:link controller="section" id="${groupInstance.section.id}" action="show">
          ${groupInstance.section.name}
        </g:link>
        - <strong>${groupInstance.title}</strong>
      </td>
      <td valign="middle" align="right">
        [<a href="/wiki/en/lor-faq">FAQ</a>]
      [<a href="rules.jsp">Правила форума</a>]
      [<a href="${createLink(controller: 'message', action: 'create', id: groupInstance.id)}">Добавить сообщение</a>]
      [<a href="${createLink(action: 'rss', id: groupInstance.id)}">RSS</a>]
        <select title="Быстрый переход" onchange="submit()" name="id">
          <g:each in="${groups}" var="group">
            <option value="${group.id}" <g:if test="${groupInstance.id==group.id}">selected="selected"</g:if>>${group.title}</option>
          </g:each>
        </select>
      </td>
    </tr>
    </tbody>
  </table>
</g:form>
<div class="body">
  <div class="dialog">
    <h1>${groupInstance.section.name}: ${groupInstance.title}</h1>
    <p style="margin-top: 0px;">
      <em>${groupInstance.info}</em>
    </p>

    <g:form method="get" action="show" id="${groupInstance.id}">
      <!--<input type="hidden" value="126" name="group"/>-->
      <!-- input type=hidden name=deleted value=f -->
      <div class="nav">
        фильтр тем: <select name="showignored">
        <option value="t">все темы</option>
        <option selected="" value="f">без игнорируемых</option>
      </select> <input type="submit" value="Обновить"/> [<a href="ignore-list.jsp">настроить</a>]
      </div>
    </g:form>

    <table width="100%" class="message-table">
      <thead>
      <tr><th>Заголовок
        <span style="font-weight: normal">
          [порядок:
          <g:if test="${params.lastmod}">
            <a href="${createLink(action: 'show', id: groupInstance.id)}" style="text-decoration: underline">дата отправки</a>
            <b>дата изменения</b>
          </g:if>
          <g:else>
            <b>дата отправки</b>
            <a href="${createLink(action: 'show_lastmod', id: groupInstance.id)}" style="text-decoration: underline">дата изменения</a>
          </g:else>
          ]
        </span>
      </th><th>Число ответов<br>всего/день/час</th></tr>
      </thead>
      <tbody>
      <g:each in="${topics}" var="topic">
        <tr>
          <td>
            <g:if test="${topic.sticky}"><img width="15" height="15" title="Прикреплено" alt="Прикреплено" src="${createLinkTo(dir: 'images', file: 'paper_clip.gif')}"/></g:if>
            <a href="${createLink(controller: 'topic', action: 'show', id: topic.id, params: ['lastmod': topic.lastmod.time])}" rev=contents>
              ${topic.title}
            </a> (${topic.user.nick})
          </td>
          <td align=center>
            <b>${topic.stat1}</b>/<b>${topic.stat2}</b>/<b>${topic.stat3}</b>/<b>${topic.stat4}</b>
          </td>
        </tr>
      </g:each>
      </tbody>
      <tfoot>
      <tr>
        <td colspan="2">
          <p/>
          <div style="float: left;">
            <a href="group.jsp?group=4066&amp;offset=21570" rev="prev" rel="next">архив →</a>
          </div>
          <div style="float: right;">
            <a href="group.jsp?group=4066&amp;offset=21570" rev="prev" rel="next">архив →</a>
          </div>
        </td>
      </tr>
      </tfoot>
    </table>

    <div align="center"><p>
      <g:paginate id="${groupInstance.id}" total="${total}"/>
    </p><p>

    </p><hr/>
      <form method="post" action="group.jsp">
        <input type="hidden" value="4066" name="group"/>
        <input type="hidden" value="1" name="deleted"/>

        <input type="submit" value="Показать удаленные сообщения"/>
      </form>
      <hr/>

    </div>

  </div>
</div>
</body>
</html>
